import java.util.Random;
import java.util.Scanner;

public class demo01 {
    public static void main(String[] args) {
        int sum=0;
        System.out.println("请输入0--100数字");
        Scanner sc=new Scanner(System.in);
        Random ran=new Random();
        int ranNumber=ran.nextInt(100)+1;
        while (true){
            int number=sc.nextInt();
            if(number>ranNumber){
                System.out.println("太大了请在输入一次");
            }
            if(number<ranNumber){
                System.out.println("太小了请再输入一次");
            }
            if(number==ranNumber){
                System.out.println("恭喜你猜对了");
            }
            sum++;
        }
        if(sum==0){
            System.out.println("你真厉害，一次就猜对了");
        }else if(2<=sum&&sum<=4){
            System.out.println("你很聪明，猜对了。");
        }else{
            System.out.println("笨蛋，你才这么多次。");
        }
        }
    }
